package geektime.spring.springbucks.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/apollo")
public class ApolloController {

    @Value("${configValue:dev}")
    private String configValue;

    @RequestMapping("/getConfig")
    public String getConfig() {
        return configValue;
    }

}
